<script setup>
import { ref } from 'vue'

const active = ref(false)
</script>

<template>
  <router-view></router-view>
  <div class="layout">
    <van-tabbar v-model="active" active-color="#ee0a24" route>
      <van-tabbar-item to="/home" icon="wap-home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/category" icon="apps-o">分页类</van-tabbar-item>
      <van-tabbar-item to="/shoppingCart" icon="shopping-cart-o"
        >购物车</van-tabbar-item
      >
      <van-tabbar-item to="/user" icon="user-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<style scoped lang="less">
.layout {
  margin-top: 60px;
}
</style>
